<?php
namespace app\home\controller;
use \think\Controller;
use app\user\controller\User;
use think\Db;
use think\Request;
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST,GET');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
class Authinfo extends Controller
{

  /**
     * @var \think\Request Request实例
     */
    protected $request;

    /**
     * 构造方法
     * @param Request $request Request对象
     * @access public
     */
    public function __construct(Request $request)
    {

    	$apitoken= $request->param('api_token');

      if(!$apitoken){
         echo '{"status": 10001}';
         exit();
      }else{
        if($apitoken == HB_APITOKEN){

		}else{
			echo '{"status": 10002}';
		}
      }


    }




}
